// 用户相关的API函数
import request from "@/utils/request";

// 账号登录，传入对象包含：account, password
export const userAccountLogin = ({ account, password }) =>
  request("/login", "post", { account, password });

// 发送短信验证码
export const userMobileLoginCode = (mobile) =>
  request("/login/code", "get", { mobile });

// 短信登录
export const userMobileLogin = ({ mobile, code }) =>
  request("/login/code", "post", { mobile, code });
